import store from '@/store/store'
import layout from '../components/layout.vue'

export default [
    {
        path: '/moldManagement',
        name: 'moldLedger',
        component: layout,
        children: [
            {
                path: '/moldManagement/moldLedger',
                name: 'moldLedger ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldLedger/index.vue'),
            },
            {
                path: '/moldManagement/moldLedger/moldDetail',
                name: 'moldDetail ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldLedger/modules/moldDetail.vue'),
            },
            {
                path: '/moldManagement/moldRepair',//模具维修大厅
                name: 'moldLedger ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldRepair/index.vue'),
            },
            {
                path: '/moldManagement/moldRepairRecord',//模具维修记录
                name: 'moldRepairRecord ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldRepairRecord/index.vue'),
            },
            {
                path: '/moldManagement/moldRepairDetail',//模具维修大厅 完工，验收
                name: 'moldRepairDetail ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldRepair/modules/moldRepairDetail.vue'),
            },
            {
                path: '/moldManagement/moldRepairRule',
                name: 'moldLedger ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldRepairRule/index.vue'),
            },
            {
                path: '/moldManagement/mdLink',//设备关联
                name: 'mdLink ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/mdLink/index.vue'),
            },
            {
                path: '/moldManagement/moldOutApply',//模具出库申请
                name: 'moldOutApply ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldOutApply/index.vue'),
            },
            {
                path: '/moldManagement/moldInApply',//模具入库申请
                name: 'moldInApply ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldInApply/index.vue'),
            },
            {
                path: '/moldManagement/moldOutAndIn',//模具出入库申请管理
                name: 'moldOutAndIn ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldOutAndIn/index.vue'),
            },
            {
                path: '/moldManagement/mpLink',//产品关联
                name: 'mpLink ',
                meta: {
                    title: "kjghwek"
                },
                component: () => import('../views/moldManagement/mpLink/index.vue'),
            },
            {
                path: '/moldManagement/wareHouseManage',// 模具库位管理
                name: 'wareHouseManage ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/wareHouseManage/index.vue'),
            },
            // 模具保养
            {
                path: '/moldManagement/moldMaintenance/plan',//配置保养计划
                name: 'plan ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldMaintenance/plan/index.vue'),
            },
            {
                path: '/moldManagement/moldMaintenance/hall',// 保养大厅
                name: 'hall ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldMaintenance/hall/index.vue'),
            },
            {
                path: '/moldManagement/moldMaintenance/reminder',// 保养提醒配置
                name: 'reminder ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldMaintenance/reminder/index.vue'),
            },
            {
                path: '/moldManagement/moldMaintenance/items',// 配置保养项
                name: 'items ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldMaintenance/items/index.vue'),
            },
            {
                path: '/moldMaintenance/maintenanceDetail',// 保养大厅详情
                name: 'moldMaintenanceDetail ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldMaintenance/hall/modules/moldRepairDetail.vue'),
            },
            {
                path: '/moldManagement/moldMaintenance/record',// 保养记录
                name: 'moldMaintenanceRecord ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldMaintenance/record/index.vue'),
            },
            // 模具点检
            {
                path: '/moldManagement/moldSpotCheck/plan',//配置点检计划
                name: 'plan ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldSpotCheck/plan/index.vue'),
            },
            {
                path: '/moldManagement/moldSpotCheck/hall',// 点检大厅
                name: 'hall ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldSpotCheck/hall/index.vue'),
            },
            {
                path: '/moldSpotCheck/spotCheckDetail',// 点检大厅详情
                name: 'spotCheckDetail',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldSpotCheck/hall/modules/moldRepairDetail.vue'),
            },
            {
                path: '/moldManagement/moldSpotCheck/reminder',// 点检提醒配置
                name: 'reminder ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldSpotCheck/reminder/index.vue'),
            },
            {
                path: '/moldManagement/moldSpotCheck/items',// 配置点检项
                name: 'items ',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldSpotCheck/items/index.vue'),
            },
            {
                path: '/moldManagement/moldSpotCheck/record',// 模具点检记录
                name: 'record',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/moldManagement/moldSpotCheck/record/index.vue'),
            },
        ]

    },
   
]